<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>登录</title>
</head>
<body>
    <h2>登录</h2>
    <form method="post" action="${pageContext.request.contextPath}/login">
        用户名：<input name="username" required />
        <br >
        密码：<input type="password" name="password" required/>
        <br >
        验证码：<input name="captcha" minlength="4" maxlength="4" style="width: 200px">
        <img src="${pageContext.request.contextPath}/captcha" />
         <br/>
        <button type="submit">登录</button> <label>${msg}</label>
    </form>
</body>
</html>
